import { httpRequest } from '@/utils/http';
import { CommunityForm, CommunityQuery, CommunityVO } from '@/api/system/community/types';
enum Api{
    root = '/system/community',
    list = '/system/community/list',
}
/**
 * 查询小区列表
 * @param query
 * @returns {*}
 */
export function listCommunity(query?: CommunityQuery){
    return httpRequest.get<CommunityVO[]>({url: Api.list, data: query});
}

/**
 * 查询小区详细
 * @param communityId
 */
export function getCommunity(communityId: string | number){
    return httpRequest.get<CommunityVO>({url: Api.root + '/' + communityId});
}
